package com.wicket.okroperation.integration.dto;

import com.wicket.okroperation.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DataDepositCertificationDto
 * @使用场景
 */
@Data
public class DataDepositCertificationDto
  extends BaseDto
  implements Serializable {

  /**
   * 证书名称
   */
  @ApiModelProperty("证书名称")
  private String certificateName;

  /**
   * 证书标识
   */
  @ApiModelProperty("证书标识")
  private String certificateCode;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DataDepositCertificationDto that = (DataDepositCertificationDto) o;
    return (
      certificateName == that.certificateName &&
      certificateCode == that.certificateCode &&
      subjectLifeCycle == that.subjectLifeCycle &&
      operationInductionId == that.operationInductionId &&
      operateTime == that.operateTime
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      certificateName,
      certificateCode,
      subjectLifeCycle,
      operationInductionId,
      operateTime
    );
  }

}
